package com.yc.cloud.admin.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 用户与绘本关联
 *
 * @author Yancy
 * @since 2024-01-21
 */
@Data
public class ProductUpdateParam {


    @ApiModelProperty(value = "产品名称", required = true)
    @NotEmpty
    private String name;

    @ApiModelProperty(value = "产品描述", required = true)
    @NotEmpty
    private String description;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "会员时长,以月为单位", required = true)
    @Min(1)
    @NotNull
    private Integer duration;

    @ApiModelProperty(value = "日常价格", required = true)
    @Min(1)
    @NotNull
    private Integer dailyPrice;

    @ApiModelProperty(value = "优惠价格", required = true)
    @NotNull
    @Min(1)
    private Integer price;

}
